<?php


class Controller
{
    private $_request;
    private $_response;
    
    public function Controller () {
    }
    public function init () {
    }
    public function setResponse (Response $response) {
        $this->_response = $response;
    }
    public function setRequest (Request $request) {
        $this->_request = $request;
    }
    public function response () {
        return $this->_response;
    }
    public function request () {
        return $this->_request;
    }
    public function view () {
        return $this->response()->view();
    }
    public function render ($tpl) {
        $this->response()->render($tpl);
    }
}



